package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class RegisterUserRequest {

    @ApiModelProperty("用户账号 邮箱/手机号")
    @NotBlank(message = "用户名不能为空")
    private String userAccount;

    @ApiModelProperty("登陆密码")
    @NotBlank(message = "登录密码不能为为空")
    @Pattern(regexp="^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$",message = "密码格式不正确")
    private String pwd;

    @ApiModelProperty("验证码id")
    @NotNull(message = "验证码Id不能为空")
    private Long smsId;

    @ApiModelProperty("验证码")
    @NotBlank(message = "验证码不能为为空")
    private String codes;

    @ApiModelProperty("邀请码")
//    @NotBlank(message = "邀请码不能为空")
    private String inviteCode;

    @ApiModelProperty("1:手机号注册 2:邮箱注册")
    @NotNull(message = "注册类型不能为为空")
    private Integer types;




}
